import {createRouter, createWebHistory} from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'

// 定义路由类型
const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'Home',
        component: () => import('@/layout/MainLayout.vue')
    },
]

// 创建路由实例
const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes
})

export default router
